package main.com.dhj.test02

object test04 {

    def main(args: Array[String]): Unit = {

        case class Book(isbn: String)
        val frankenstein = Book("978-0486282114")
        println(frankenstein)

        println("------------------------------------------")


        case class Message(sender: String, recipient: String, body: String)
        val message4 = Message("julien@bretagne.fr", "travis@washington.us", "Me zo o komz gant ma amezeg")
        val message5 = message4.copy(sender = message4.recipient, recipient = "claire@bourgogne.fr")
        println(message5.sender)
        println(message5.recipient)
        println(message5.body)
    }


}

